<template>
<div class="container">
    <em @click="back" class="iconfont icon">&#xe63c;</em>
    <em>{{topic}}</em>
</div>
</template>

<script>
export default {
    name: "backTopic",
    data() {
        return {

        }
    },
    props: {
        topic: String,
    },
    methods: {
        // back函数后退一步
        back(){
            window.history.go(-1);
        }
    },

}
</script>

<style scoped>
.container {
    width: 100%;
    height: 1rem;
    line-height: 1rem;
    text-align: center;
    font-size: .5rem;
    border-bottom: 1px solid #eee;
}

.icon {
    float: left;
}
</style>
